int h[MAX+1],temp[MAX+1];